package com.yonyou.pmclouds.projectpart.upgrade.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.projectpart.entity.ProjectPartVO;

import java.util.List;

/**
 * 工程部位档案-业务单据历史数据升级接口
 *
 * @author th
 * @date 2020/4/17 15:29
 */
public interface IProjectPartUpgrade {
    /**
     * 升级
     *
     * @return
     */
    boolean upgrade() throws BusinessException;

    void addBusinessOperatorClass(IProjectPartBusinessOperator queryClass);

    /**
     * 批量新增保存(for历史数据升级)
     * @param projectPartVOs
     * @return
     * @throws BusinessException
     */
    List<ProjectPartVO> insertBatchForMobile(List<ProjectPartVO>  projectPartVOs) throws BusinessException;
}
